cmake_minimum_required(VERSION 3.12)
set(PROJECT_NAME KPT_v3-runtime)
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED FALSE)

add_subdirectory(vendor/glfw)
add_subdirectory(vendor/glm)

file(GLOB_RECURSE SRC_FILES src/*.cpp vendor/glad/*.c)
file(GLOB_RECURSE HEADER_FILES src/*.h vendor/glad/*.h)

include_directories(src)
include_directories(vendor/glad/include)

add_library(${PROJECT_NAME} STATIC ${SRC_FILES} ${HEADER_FILES})
target_link_libraries(${PROJECT_NAME} glfw glm)
